Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for JavaScript Online Test | Mock Test

←Go Back to Online Practice Test

Ques. What is the correct syntax for referring to an external script called "xxx.js"?
Option 1. <script type="text/javascript" name="xxx.js">
Option 2. <script type="text/javascript" src="xxx.js">
Option 3. <script type="text/javascript" href="xxx.js">

Ans. Option 2

Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No
©2024 WithoutBook